// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import axios from 'axios'
// Vue.prototype.axios = axios//使用方法1

// 方法2
import VueAxios from 'vue-axios'
Vue.use(VueAxios,axios);

// 跨域？
// axios.defaults.baseURL = '/api'
// axios.defaults.headers.post['Content-Type'] = 'application/json'
// axios.defaults.headers.get['Content-Type'] = 'application/json'

import $ from 'jquery'

import eleUi  from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(eleUi)

// import 'bootstrap/dist/css/bootstrap.min.css'
// import 'bootstrap/dist/js/bootstrap.min'

import store from './store'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,
	components: { App },
	template: '<App/>'
})
